package com.gitee.ywj1352.web;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.lang.annotation.*;

/**
 * @author wenjie.yang on 2019/7/16.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RequestMapping(method = RequestMethod.OPTIONS) //如果不加元注解 会报错
public @interface OptionsMapping {
    @AliasFor(annotation = RequestMapping.class)
    String name() default "";
}
